﻿/*-----------------------------------------------
// File: EquipOrTreaIconTemplate.cs
// Description: 
// Author: Shaobing	492057342@qq.com
-----------------------------------------------*/
using UnityEngine;
using System.Collections;

namespace UI
{
    public class EquipOrTreaIconTemplate : IconTemplate
    {
        public void SetEquipOrTrea(TextureIcon iconType, string id) {
            if (iconType == TextureIcon.EQUIP)
            {
                var de = Dict.Blo.DictEquipBlo.GetTableEquip(id);
                SetIcon(iconType, de.icon);
            }
            else {
                var dt = Dict.Blo.DictTreasureBlo.GetTableTreasure(id);
                SetIcon(iconType, dt.icon);
            }
        }
    }
}